<?php
  include 'JHeader.php';

  if(isset($_GET['id']))
  {
      $id_admin   = $_GET['id'];
      if(isset($_GET['name']))
      {
          $admin_name = $_GET['name'];
      }
      else
      {
          $admin_name = 'N/A';
      }
      require 'Database/Database.php';
?>
<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet" type="text/css" href="css/default.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo $admin_name ?> - Details &auml;ndern</title>
    </head>
    <body>
        <form name="edit_admin" method="POST" action="<?php echo $_SERVER['SELF'] ?>">
        <h1><?php echo $admin_name . ' - Rechte'?></h1>
        <div class="changeable_values">
            <table>
                <tr>
                    <td>Super-Admin</td>
                    <td><input type="checkbox" name="superAdmin" value="super" /></td>
                </tr>
                <tr>
                    <td>Ligen</td>
                    <td>
                        <select name="admin_leagues" multiple>
                            <option value="1">TODO 1</option>
                            <option value="2">TODO 2</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>Serien</td>
                    <td>
                        <select name="admin_series" multiple>
                            <option value="1">TODO 1</option>
                            <option value="2">TODO 2</option>
                        </select>
                    </td>
                </tr>
            </table>
        </div>
        <div class="hint">
            <p>Mehrfachauswahl mit STRG oder gedr&uuml;ckter Maustaste</p>
        </div>
        <div id="edit_button">
            <input type="submit" value="  OK  " />
        </form>
        </div>
    </body>
</html>
<?php
  }
  else
  {
      echo 'ERROR';
  }
?>